package com.zp.base.dubbo;

import com.zp.base.api.RemotePriceListService;
import com.zp.base.api.bo.PriceListBo;
import com.zp.base.service.price.IPriceListService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.Collection;

/**
 * @program: zp-backstage
 * @ClassName RemotePriceListServiceImpl
 * @description:
 * @author: zhangpeng
 * @create: 2023-09-13 11:12
 * @Version 1.0
 **/
@RequiredArgsConstructor
@Service
@DubboService
public class RemotePriceListServiceImpl implements RemotePriceListService {

    private final IPriceListService priceListService;


    @Override
    public PriceListBo insertByBo (PriceListBo bo) {
        return priceListService.insertByBo(bo);
    }

    @Override
    public Boolean updateByBo (PriceListBo bo) {
        return priceListService.updateByBo(bo);
    }

    @Override
    public Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid) {
        return priceListService.deleteWithValidByIds(ids, isValid);
    }

    @Override
    public Boolean stopPrice (PriceListBo bo) {
        return priceListService.stopPrice(bo);
    }

    @Override
    public Boolean priceAdjustment (PriceListBo bo) {
        return priceListService.priceAdjustment(bo);
    }

    @Override
    public Boolean priceEnable (PriceListBo bo) {
        return priceListService.priceEnable(bo);
    }
}
